
//
//  HYLButton.m
//  转轮实现
//
//  Created by hyl on 16/7/10.
//  Copyright © 2016年 hyl. All rights reserved.
//

#import "HYLButton.h"

@implementation HYLButton

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
-(CGRect)imageRectForContentRect:(CGRect)contentRect{
    CGFloat imageW=40;
    CGFloat imageH=46;
    CGFloat imageX=(contentRect.size.width-imageW)*0.5;
    CGFloat imageY=20;
    return CGRectMake(imageX, imageY, imageW, imageH);
    
}
@end
